import { createApp } from 'vue'
import App from './App.vue'
import router from './router'
import ElementPlus from 'element-plus'
import 'element-plus/dist/index.css'
import './style.css'
import DisableDevtool from 'disable-devtool'

// 简化 disable-devtool 配置
// DisableDevtool({
//   disableMenu: true,
//   disableSelect: true,
//   disableCopy: true,
//   disableCut: true,
//   disablePaste: true,
//   interval: 50,
//   ondevtoolopen: () => {
//     window.location.replace('about:blank')
//   },
//   // 移除可能导致问题的配置
//   // detectors: ['default', 'performance', 'console', 'debugger', 'inspector'],
//   clearLog: true,
//   disableIframeParents: true,
// })

const app = createApp(App)
app.use(router)
app.use(ElementPlus)
app.mount('#app')